package com.learning.regex;

/**
 * Created by xieyichao on 2017/5/13.
 */

public class MyClass {

    public static void main(String[] args){
        Pattern p = Pattern.compile("a+b*c?");
        Matcher matcher = p.matcher("aaaaaabbc");
        System.out.println(matcher.matches());
    }

}
